package service;

import dao.UserDao;
import pojo.Flight;
import pojo.User;

import java.util.List;

public class UserService {
    private static UserDao userDao = new UserDao();

    public static List<User> selectAllFlights(){
        return userDao.getAllUsers();
    }

    public static List<User> selectid(String id) {
        return userDao.selectById(id);
    }


    public User getUser(String userName, String password){
        return userDao.getUser(userName, password);
    }
    public List<User> selectAllUsers(){
        return userDao.getAllUsers();
    }

    public void deleteById(int id) {
        userDao.deleteFlightById(id);
    }
}
